log using "$rootpath/log/Fig3.log", replace
//Figure 3 final run 
use "$rootpath/processed_data/Fig3_Data.dta", clear

//graph twoway line avg_log_budget1 year, lpattern(longdash)  ||line avg_log_budget0 year, lpattern(shortdash)   || line avg_log_budget year, xline(2014) xlabel(2010 "2010" 2011 "2011" 2012 "2012" 2013 "2013" 2014 "2014" 2015 "2015" 2016 "2016" 2017 "2017" 2018 "2018") yscale(r(17 17.5 "17.5" 18 "18" 18.5 "18.5" 19 "19" 19.5 "19.5")) ytitle("Log of Agency Budget") yscale(titlegap(*10)) title("Log Average State Budget by Treatment Group") subtitle("2010 - 2018") graphregion(color(white))
graph twoway line avg_log_budget1 year, lpattern(longdash)  ||line avg_log_budget0 year, lpattern(shortdash)   || line avg_log_budget year, xline(2014) xlabel(2010 "2010" 2011 "2011" 2012 "2012" 2013 "2013" 2014 "2014" 2015 "2015" 2016 "2016" 2017 "2017" 2018 "2018") ylabel(17.5 "17.5" 18 "18" 18.5 "18.5" 19 "19" 19.5 "19.5") ytitle("Log of Agency Budget") yscale(titlegap(*10)) title("Log Average State Budget by Treatment Group") subtitle("2010 - 2018") graphregion(color(white))

graph export "$rootpath/table_graph/Budget_Figure_2023WB.pdf", replace
log close
